#version 460
#extension GL_GOOGLE_include_directive : enable
#extension GL_EXT_shader_explicit_arithmetic_types_int64 : require

#include "../../../../core/shader_built_in_functions.h"
#include "../../../../core/shader_widget_color.h"
#include "../../../../core/shader_color.h"


layout(location = 0) in vec4 vColor;
layout(location = 1) in vec2 vUV;
layout(location = 2) in flat float gap;
layout(location = 3) in flat float offset;

layout(location=0) out vec4 outColor;


void main(void){
	uint k = uint( (vUV.y + offset) / gap);
	float a = fract((floor((vUV.y - offset) / gap)) / 2) * 2;
	
	outColor = mix(vColor, vColor * 0.9, a);
}


 